package com.usf.jprovider.schema.provider.pointer;

import javax.xml.bind.annotation.XmlAttribute;

import com.usf.jprovider.object.JObjectNode;
import com.usf.jprovider.object.type.JString;
import com.usf.jprovider.object.type.JType;

public final class CurrentPointer extends AbstractPointer {

	@XmlAttribute protected String value;

	public CurrentPointer(){
		super();
		value = "";
	}
	public CurrentPointer(String source) {
		this.value = source;
	}
	
	public String getValue() {
		return value;
	}
	
	@Override
	public boolean isDependent(JObjectNode node) {
		return false;
	}
	@Override
	protected JType<?> pointedValue(JObjectNode node) {
		return new JString(value);
	}
}
